package reflect;

public class Student {
    private String name = "张三";
    private int age = 18;
    private char gander = '男';
    public Student(){}
    public Student(String name, int age, char gander) {
        this.name = name;
        this.age = age;
        this.gander = gander;
    }

    public void study(){
        System.out.println("学生【"+name+"】good good study! day day up!");
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getGander() {
        return gander;
    }

    public void setGander(char gander) {
        this.gander = gander;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gander=" + gander +
                '}';
    }
}
